//用函数实现判断是否是闰年
#include<stdio.h>
int judge_leap_year(int year);
int main()
{
	int year=0;
	scanf("%d",&year);
	int a=judge_leap_year(year);
	if(a)
	{
		printf("%d年是闰年",year);
	}
	else printf("%d年不是闰年",year);
    return 0;
}
int judge_leap_year(int year)
{
	int flag=0;//若最终flag为0则不是闰年，为1则是闰年
	if((year%4==0&&year%100!=0)||year%400==0)
	{
		flag=1;
	}
	return flag;
}

